package JUnitTest;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import Model.Wall.PostTime;
import DBAccess.DBAccess;
public class PostTimeTest {
	DBAccess access = new DBAccess();

	@Test
	public void test_PostTimeTest() {
		assertTrue(PostTime.MILSEC_IN_SECS == 1000);
		assertTrue(PostTime.SEC_IN_MIN == 60);
		assertTrue(PostTime.SEC_IN_HR == 3600);
		assertTrue(PostTime.SEC_IN_DAY== 86400);
		assertTrue(PostTime.SEC_IN_WEEK==604800);
		assertTrue(PostTime.SEC_IN_MONTH==2419200);
		assertTrue(PostTime.SEC_IN_YEAR==29030400);
	}
	
	@Test
	public void test_getCurrentTimeTest() {
		PostTime pt = new PostTime();
		assertTrue(pt.getCurrentTime()>0);
	}
	
	@Test
	public void postTimeMessageTest(){
		PostTime pt = new PostTime();
		assertNotNull(pt.postTimeMessage(1323155963));
	}
}
